package zigzag.designpattern.prototype;

/*
 * ZigzagSoft.net
 * Copyright 2006-2008 Jerry Chan
 * Email : jerry.chan.cn@gmail.com
 *
 * These sources may be copied, modified and distributed only for
 * projects undertaken by Jerry Chan, or with the agreement by the author.
 * Any enhancement/changes/suggestion to the source is welcome and is to
 * keep the author informed.
*/

public abstract class AbstractArchitect implements Cloneable {
    House house = new House();

    public abstract void buildRoom(String room);

    public abstract void buildGarden(String garden);

    public Object clone() {
        AbstractArchitect object = null;
        try {
            object = (AbstractArchitect) super.clone();
        } catch (CloneNotSupportedException exception) {
            System.err.println("AbstractArchitect not Cloneable");
        }
        return object;
    }
}
